import { StackNavigator, CardStack } from 'react-navigation';
import STRING from '../const_string_zh_CN';
import LoginPage from '../pages/login_page';
import React from 'react';
import CourseTabNavigator from '../pages/main_pages/class_tab_page'
import CourseDetailPage from '../pages/course/course_detail_information'
import CourseTermPage from '../pages/course/more_course_term'
import CourseInformation from '../pages/course/study_course_information'
import MoreCourseInformation from '../pages/course/more_course_term_information'
import MoreCoursePage from '../pages/course/more_course_department'
import MoreCourseList from '../pages/course/more_course_list'
import Handouts from '../pages/course/handouts'
import Video from '../pages/course/course_video'
//import iOSVideo from '../pages/course/course_video_iOS'
import CourseToolsPage from '../pages/course/course_tools'
//签到信息表
import StudentSignInList from '../pages/discovery/student_signin_list';
//课程-交互部分(教师端)
import CourseQuestionList from '../pages/discovery/course_question_list';
import QuestionTeacher_Course from '../pages/discovery/question_teacher';
import ClassList_Course from '../pages/discovery/class_list';
import AnswerQuestionStatisticsTeacher_Course from '../pages/discovery/answer_question_statistics_teacher';
//课程交互部分（学生端）
import QuestionStudent_course from '../pages/discovery/question_student';
//icons
import Icons from '../pages/discovery/icons';
const CourseMainOptions = {
    headerTitle: STRING.class_page_title,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    },
}
const CourseDetailOptions = {
    headerTitle: STRING.class_page_title,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    }
}

const CourseDepartmentOptions = {
    headerTitleStyle: {
        color: 'black',
        //paddingRight: 40,
        textAlign: 'center',
        alignSelf: 'center',
    },
}
const MoreCourseOptions = {
   // headerTitle: '计算机学院',//department_info.departmentid ,//'计算机学院'
    headerTitleStyle: {
        color: 'black',
        //paddingRight: 40,
        textAlign: 'center',
        alignSelf: 'center',
    }
}
//title 讲义
const HandoutsList = {
    headerTitle: '讲义',
    headerTitleStyle: {
        color: 'black',
        //paddingRight: 40,
        textAlign: 'center',
        alignSelf: 'center',
    },
}
//title 视频
const VideoList = {
    headerTitle: '视频',
    headerTitleStyle: {
        color: 'black',
        //paddingRight: 40,
        textAlign: 'center',
        alignSelf: 'center',
    },
}
const CourseToolsOptions = {
    //headerTitle: '学习工具',
    headerTitleStyle: {
        color: 'black',
       // paddingRight: 40,
        textAlign: 'center',
        alignSelf: 'center',
    },
}
//课程-交互部分
const CourseInteraction = {
    headerTitleStyle: {
        color: 'black',
        paddingRight: '7%',
        textAlign: 'center',
        alignSelf: 'center',
    },
}
const MOOCCourseStackNavigator = StackNavigator({
    MainTab: { screen: CourseTabNavigator, navigationOptions: CourseMainOptions },
    CourseDetail: { screen: CourseDetailPage, navigationOptions: CourseDetailOptions },
    CourseTerm: { screen: CourseTermPage, navigationOptions: MoreCourseOptions },
    CourseInfo: { screen: CourseInformation, navigationOptions: CourseDepartmentOptions },
    MoreCourseInfo: { screen: MoreCourseInformation, navigationOptions: CourseDepartmentOptions },
    MoreCourse: { screen: MoreCoursePage, navigationOptions: CourseMainOptions },
    MoreCourseList: { screen: MoreCourseList, navigationOptions: MoreCourseOptions },
    Handouts: { screen: Handouts, navigationOptions: HandoutsList },
    Video: { screen: Video, navigationOptions: VideoList },
    //iOSVideo: { screen: iOSVideo, navigationOptions: VideoList },
    CourseTools: { screen: CourseToolsPage, navigationOptions: CourseToolsOptions },
    //签到
    StudentSignInList: { screen : StudentSignInList, navigationOptions:CourseInteraction },
    //课程交互部分(教师端)
    CourseQuestionList: { screen :CourseQuestionList, navigationOptions:CourseInteraction },
    QuestionTeacher_Course: { screen :QuestionTeacher_Course, navigationOptions:CourseInteraction },
    ClassList_Course: { screen :ClassList_Course, navigationOptions:CourseInteraction },
    AnswerQuestionStatisticsTeacher_Course: { screen :AnswerQuestionStatisticsTeacher_Course, navigationOptions:CourseInteraction },
    //课程交互部分（学生端）
     QuestionStudent_course: { screen :QuestionStudent_course, navigationOptions:CourseInteraction },
     //icons
     Icons: { screen : Icons, navigationOptions:CourseInteraction },
}, {

    });

export default MOOCCourseStackNavigator;